package com.bingbaihanji.cloud.apis;

import com.bingbaihanji.cloud.entities.PayDTO;
import com.bingbaihanji.cloud.resp.ResultData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 冰白寒祭
 * @date 2024-03-12 23:13:30
 * @description //TODO
 */
@FeignClient("cloud-payment-service")
public interface PayFeignApi {

    @PostMapping("/pay/add")
    ResultData addPay(@RequestBody PayDTO payDTO);

    @GetMapping("/pay/get/{id}")
    ResultData getPayInfo(@PathVariable("id") Integer id);

    @GetMapping("/pay/get/info")
    String getLb();



}
